package com.nbjtjc.safe.mapper.safe;

import com.nbjtjc.safe.model.safe.SafeBasisClassify;
import com.nbjtjc.util.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SafeBasisClassifyMapper extends MyMapper<SafeBasisClassify> {

    @Select("select extra from safe_basis_classify where  classify_type =#{type} and cid like CONCAT('%',#{p_id},'%')")
    List<String> findByPid(@Param("p_id") String pId,@Param("type") int classifyType);
}